/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

import view.MatrixGUI;

/**
 *
 * @author Stupi
 */
public class Addition {

    
    
    public int [][] addition (int [][] firstMAtrix, int [][] secondMAtric) {
         int n = firstMAtrix.length;
         int m = firstMAtrix[0].length;
         int j;
         int i;
        int [][] add = new int[n][m];
        
       for ( i = 0 ; i <n ; i++ )
            for (  j = 0 ; j < m ; j++ )
               add[i][j] = firstMAtrix[i][j] + secondMAtric[i][j];
            
        
        return add;
        
    }
    
    
    
}
